import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

import routes from '@/router/routerConfig';


const router: any = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})


//全局前置守卫函数
router.beforeEach((to, from, next) => {

  next()
})


//全局后置守卫函数
router.afterEach((to, from) => {


})

export default router;

